package ca.camosun.inventory;

public class Item {
	private String name;
	private String description;
	private int quantity;

	public Item(String inName, String inDescription, int inQuantity) {
		name = inName;
		description = inDescription;
		quantity = inQuantity;
	}

	public String getName() {
		return name;
	}

	public String getDescription() {
		return description;
	}

	public void setName(String inName) {
		name = inName;
	}

	public void setDescription(String inDescription) {
		description = inDescription;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int inQuantity) {
		quantity = inQuantity;
	}

	public String toString() {
		return (name + "\n" + description + "\n" + quantity);
	}

	 @Override
     public boolean equals(Object looksLike) {
             Item comparison = (Item) looksLike;
             return name.equals(comparison.name);
         
     }
}
